@font-face {
    font-family: Millik;
    font-weight: 700;
    src: url(./asset/font/Millik.c3f91cb.ttf) format("truetype");
    text-rendering: optimizeLegibility;
}

:root {
    --post-spacing: 1.78vw;
    --post-size: 25vw;
    --mask-size: 100vw;
}

* {
    padding: 0;
    margin: 0;
    font-family: Millik, Arial, sans-serif;
    font-size: 62.5%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
body {
    background: #fff;
    background-image: url(./asset/image/grid.svg);
    background-repeat: repeat;
    background-size: 300px 300px;
}
.title {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%, -5%);
    p {
        font-size: 4rem;
        font-weight: 800;
        white-space: nowrap
    }
}
#banner {
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: calc(var(--post-size) / 0.72);
    mask: url();
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: var(--mask-size);
    position: absolute;
    top: 10%;
    .img-wrapper {
        display: flex;
        position: absolute;
        width: 100%;
        float: left;
        height: calc(var(--post-size) / 0.72);
        transform: translate(13.39vw, 0);
        animation: admission 1.5s;
        .img-box {
            height: 100%;
            display: inline-block;
            margin-right: var(--post-spacing);
            position: relative;
            cursor: pointer;

            .info {
                position: absolute;
                display: flex;
                flex-direction: column;
                justify-content: center;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                background: hsla(0, 0%, 9%, 0.5);
                text-align: center;
                color: #fff9f1;
                font-size: 4rem;
            }
            img {
                width: var(--post-size);
                height: 100%;
                object-position: center;
                object-fit: cover;
            }
            &:last-child {
                transform: translate(-160.68vw, 0);
            }
        }
    }
}
.btn-group {
    height: 15vh;
    position: absolute;
    left: 50%;
    bottom: 0%;
    transform: translate(-50%, -50%);
    transition: 1s;
    opacity: 0;
    .btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 1px solid #171717;
        background-color: #fff;
        margin: 10px;
        cursor: pointer;
        transition: 0.4s;
        box-sizing: border-box;
        &:hover {
            transform: scale(1.2);
            background-color: #000;
            .icon {
                fill: #fff;
            }
        }
        .icon {
            width: 30px;
            height: 30px;
        }
        .right {
            transform: rotate(180deg);
        }
    }
}

.img-list {
    left: 0;
}

@keyframes admission {
    0% {
        transform: translate(140vw, 0);
    }
    100% {
        transform: translate(13.39vw, 0);
    }
}
